package eu.jpereira.trainings.designpatterns.creational.abstractfactory;

public abstract class Factory {
	
	public enum  typy {
		JSON,
		XML
	}
	public static Factory getFactory(typy t){
		switch(t) {
		case JSON: return new JSONFactory();
		case XML: return new XMLFactory();
		  default: return null;
		}
	}
	public abstract ReportHeader getHeader() ;
	public abstract ReportBody getBody() ;
	public abstract ReportFooter getFooter() ;
}
